package com.aliyun.heiyu.powermaster.server.rotary.exception;

/**
 * @Description 算法异常
 * @Author shun.zhang
 * @Date 2020/8/4 15:35
 **/
public enum AlgorithmExceptionEnum {
    ALGO_USED(810,"制冷策略正在使用中"),
    ALGO_NAME_EXIST(811,"策略名称存在"),
    ALGO_EMPTY(812,"策略名称不能为空"),
    ALGO_ROOM_EXCEPTION(813,"机房修改策略异常"),
    ALGO_USERING(814,"该机房有其他机房在使用中获取处于复位状态"),
    ALGO_ROOM_EMPTY(815,"机房主键为空"),
    ALGO_RESET_ERROR(816,"不能手动开启复位"),
    ALGO_RESET_STATUS(818,"机房策略正在复位状态"),
    ALGO_NOT_CLOSE(819,"策略不能手动关闭，只能进行切换"),
    ALGO_NOT_EXIST(820,"策略不存在");

    private int code;
    private String msg;
    AlgorithmExceptionEnum(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
